//
//  THPickerViewController.h
//  PublicProject
//
//  Created by TianHe_Wsk on 15/10/24.
//  Copyright © 2015年 H.D.X. All rights reserved.
//

#import <UIKit/UIKit.h>


//展示类型
typedef enum _ShowType{
    typeComment            = 0,//评论
    typeReply,//回复
    typeTime,//时间选择
    typeSinglerow,//一维选择
    typeDoublerow,//二维选择
    typeTheThreeColumn//三维选择
}ShowType;



typedef void (^THPickerViewSelectBlock)(ShowType type,NSDictionary *dict);



@interface THPickerViewController : UIView
 @property (nonatomic, copy) THPickerViewSelectBlock selectBlock;

/*
 初始化
 @parme type 类型 array数据数组 {'title':'文字'}
 */
- (id)initSetump:(ShowType)type DataArray:(NSArray*)array  defaultDict:(NSDictionary*)dict;


-(void)show;

//EG
//NSDictionary *temp=[NSDictionary dictionaryWithObjectsAndKeys:@[[NSDictionary dictionaryWithObjectsAndKeys:@"男",@"title",@"0",@"id", nil],[NSDictionary dictionaryWithObjectsAndKeys:@"女",@"title",@"1",@"id", nil]],@"column", nil];
//
//THPickerViewController *picker=[[THPickerViewController alloc] initSetump:typeSinglerow DataArray:@[temp] defaultDict:[NSDictionary dictionaryWithObjectsAndKeys:[NSDictionary dictionaryWithObjectsAndKeys:@"1",@"column",@"1",@"row",@"0",@"item", nil],@"indexPath", nil]];

@end
